-- GENERATED SPELL FOR [Hand of Gorefiend] --


function spell0_23172(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(38166,pUnit)
pUnit:RegisterEvent('Sorts_23172', 30314, 1)
end

function Sorts_23172(pUnit, Event)
local choix_sorts_23172 = math.random(0, 0)
if choix_sorts_23172 == 0 then
pUnit:RegisterEvent('spell0_23172', 1, 1)
end
end

function mob23172_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23172', math.random(1500, 3000), 1)
end

function mob23172_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23172_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23172_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23172, 1, 'mob23172_Action')
RegisterUnitEvent(23172, 2, 'mob23172_Leave')
RegisterUnitEvent(23172, 3, 'mob23172_Kill')
RegisterUnitEvent(23172, 4, 'mob23172_Die')
